Greetings,
I am having an issue getting my spindle to stop moving when I have a following error on one of my axis. Axis 0 and 1 are part of coordinated motion, 2 is not. It runs the spindle through a separate program. I am using the following code which is part of the loop forever INIT file.
//turn off spindle for following errors
if ((HadFollowingError(ch0) || HadFollowingError(ch1) )))
{
Jog(2,0); //stop the spindle
SetBit(57); //Turn on red light
}
It is strange because it will turn the red light on, but it will not stop the spindle. The spindle will stop however as soon as I home channel 0 and 1 to clear the following error. It seems like the command is on hold until the following error is cleared or something.
Does anyone have an idea what could be going on? Any ideas how to halt channel 2 if the others error?
Thanks,
Scott